package com.gxa.customer.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxa.common.pojo.SysMenu;
import com.gxa.common.pojo.SysRole;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionService {
    //根据角色获取菜单
    List<SysMenu> selectAllMenuByRoleId(Long roleId);

    /*
    //获取全部菜单
    List<SysRole> queryAllMenu();

    //给角色分配权限
    void saveRolePermissionRealtionShip(String roleId, String[] permissionId);

    //递归删除菜单
    void removeChildById(String id);

    //根据用户id获取用户菜单
    List<String> selectPermissionValueByUserId(String id);

    List<JSONObject> selectPermissionByUserId(String id);

    //获取全部菜单
    List<SysRole> queryAllMenuGuli();

    //递归删除菜单
    void removeChildByIdGuli(String id);

    //给角色分配权限
    void saveRolePermissionRealtionShipGuli(String roleId, String[] permissionId);
    */
}
